package control.micro
{
	import model.micro.Battle;
	import model.micro.RangedFieldUnit;
	
	/**
	 * A unit controller for a ranged field unit.
	 */
	public class RangedFieldUnitController extends FieldUnitController
	{
		
		/**
		 * Construct a new controller for a ranged field unit.
		 * @param	unit
		 * @param	battle
		 */
		public function RangedFieldUnitController(unit:RangedFieldUnit, battle:Battle)
		{
			super(unit, battle);
		}
		
		/**
		 *
		 */
		override public function update():void
		{
			var u:RangedFieldUnit = (unit as RangedFieldUnit);
			u.setAimDirection(Math.PI * 0.5);
			u.shoot();
		}
	}
}